sdgraphobject module

class sd.api.sdgraphobject.SDGraphObject(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Class managing an object in a graph that is neither a node nor a connection (e.g. comment, frame, …)

getClassName() → str

Returns the most specific name of the class this APIObject is

getDescription() → str

Get the SDGraphObject description

getPosition() → sd.api.sdbasetypes.float2

Get the SDGraphObject position

release() → None

Releases an APIObject

setDescription(value: str) → None

Set the SDGraphObject description

Parameters

value – The new description

setPosition(position: sd.api.sdbasetypes.float2) → None

Set the SDGraphObject position

Parameters

position – The new position in the graph